package com.jmu.aslongastoday.exception;

import com.jmu.aslongastoday.common.Constants;
import lombok.Getter;

/**
 * 自定义异常
 */
@Getter
public class ServiceException extends RuntimeException {
    private String code;

    public ServiceException(String errcode, String errmsg) {
        super(errmsg);
        this.code = errcode;
    }

    public ServiceException() {
        this.code = Constants.CONSTANTS_400;
    }
}
